package com.gxa.p2p.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author R
 * @data 2021-10-21 9:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户实体")
public class User implements Serializable {
    @ApiModelProperty(name = "id",value = "id")
    private Long id;
    @ApiModelProperty(name = "name",value = "name")
    private String name;
    private String phone;
    private Long points;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp regTime;
}
